package aca

class Atividade {

	Integer id
	String nome
	String descricao
	Date deadline
	Turma turma
	static hasMany = [feedbacks : Feedback, criterios : Criterio]

	static constraints = {
		id(blank:false,unique:true)
		nome(blank:false)
		turma(blank:false)
		deadline(blank:false, date:true)
		descricao(maxSize: 100000)
	}
	
	String toString() {
		return "${nome}\t${descricao}\t${turma}\t${deadline}"
	}
}
